package com.rtmart.imageupload.repository;

import com.rtmart.imageupload.entity.Item;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author Copyright ©2018 贾维程. All rights reserved.
 */
@Repository
public interface ItemRepository extends JpaRepository<Item, Long>,JpaSpecificationExecutor {
    Boolean existsByNo(Integer no);
    //Boolean existsByIdNotAndNo(Long id, Integer no);
}
